<template>
  <div class="wrapper">
    兄弟组件A
    <button type="button" @click="handleClick">点击传参</button>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import mitter from '@/utils/eventBus'

const msg = ref('Hello, world!')

const handleClick = () => {
  mitter.emit('msg', msg.value)
}

</script>

<style scoped>

</style>